cmake_minimum_required(VERSION 2.8)
project(lable)

#compile options
add_compile_options(-O3)
set( CMAKE_CXX_FLAGS "-std=c++11" )
set( CMAKE_CXX_COMPILER "/usr/bin/clang++" )
set( CMAKE_BUILD_TYPE "Release" )

#include directory
include_directories(${PROJECT_SOURCE_DIR}/include)

#set output directory
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)

#opencv
find_package( OpenCV 2.4.8 REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )

#eigen
include_directories( "/usr/include/eigen3/" )


#self-defined library
#add_library(ppf_match_3d SHARED src/ppf_match_3d.cpp)

add_executable( get_mask src/get_mask.cpp)
target_link_libraries( get_mask ${OpenCV_LIBS})

add_executable( lable src/lable_luo.cpp)
target_link_libraries( lable ${OpenCV_LIBS})

add_executable( data_aug src/data_aug.cpp)
target_link_libraries( data_aug ${OpenCV_LIBS})

add_executable( data_noise src/data_noise.cpp)
target_link_libraries(data_noise ${OpenCV_LIBS})

add_executable( data_add_noise src/data_add_noise.cpp)
target_link_libraries(data_add_noise ${OpenCV_LIBS})

